#ifndef CHESSBOARDCONTROLLER_H
#define CHESSBOARDCONTROLLER_H

#include "Headers.h"
#include "Error.h"
#include "ChessBoard.h"

#include "Controller.h"
#include "ChessBoardView.h"

class ChessBoardController : public QObject, public Controller
{
    Q_OBJECT
public:
    ChessBoardController(QWidget * parent = 0);
    ~ChessBoardController();

    virtual void start();
    void initBoard();
    void resetBoard();

    ChessBoard * getChessBoard() const;
private:
    ChessBoard * chessBoard;
    ChessBoardView * chessBoardView;

private slots:
    void mouseMoved(int x, int y);
    void refresh();
protected:

};

#endif // CHESSBOARD_H
